package com.tzsafe.nfcdemo

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.hjy.bluetooth.entity.BluetoothDevice

class DeviceAdapter : BaseQuickAdapter<BluetoothDevice, BaseViewHolder>(R.layout.item_device) {

    override fun convert(holder: BaseViewHolder, item: BluetoothDevice) {
        holder.setText(R.id.name, item.name)
        holder.setText(R.id.rssi, "" + (item.rssi))
        holder.setText(R.id.mac, item.address)
    }

}